//
//  DoctIntrHeadView.m
//  HarmonizePub
//
//  Created by rzhy on 2016/11/9.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import "DoctIntrHeadView.h"

@interface DoctIntrHeadView ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation DoctIntrHeadView

+ (instancetype)headViewWithImage:(NSString *)image title:(NSString *)title {
    DoctIntrHeadView *instance = [[NSBundle mainBundle] loadNibNamed:@"DoctIntrHeadView" owner:nil options:nil].lastObject;
    instance.imageView.image = [UIImage imageNamed:image];
    instance.titleLabel.text = title;
    return instance;
}

+ (CGFloat)height {
    return 25.0f;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
